namespace AiXiu.Model
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class AiXiuDbContext : DbContext
    {
        public AiXiuDbContext()
            : base("name=AiXiuDbContext")
        {
        }

        public virtual DbSet<TBLogins> TBLogins { get; set; }
        public virtual DbSet<TBUsers> TBUsers { get; set; }
        public virtual DbSet<TBVideos> TBVideos { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<TBLogins>()
                .Property(e => e.UserName)
                .IsUnicode(false);

            modelBuilder.Entity<TBLogins>()
                .Property(e => e.MobileNumber)
                .IsUnicode(false);

            modelBuilder.Entity<TBLogins>()
                .Property(e => e.Password)
                .IsUnicode(false);

            modelBuilder.Entity<TBUsers>()
                .Property(e => e.NickName)
                .IsUnicode(false);

            modelBuilder.Entity<TBUsers>()
                .Property(e => e.Avatar)
                .IsUnicode(false);

            modelBuilder.Entity<TBUsers>()
                .Property(e => e.Address)
                .IsUnicode(false);

            modelBuilder.Entity<TBUsers>()
                .Property(e => e.Hobby)
                .IsUnicode(false);

            modelBuilder.Entity<TBVideos>()
                .Property(e => e.VideoId)
                .IsUnicode(false);

            modelBuilder.Entity<TBVideos>()
                .Property(e => e.Headline)
                .IsUnicode(false);

            modelBuilder.Entity<TBVideos>()
                .Property(e => e.Location)
                .IsUnicode(false);

            modelBuilder.Entity<TBVideos>()
                .Property(e => e.CoverURL)
                .IsUnicode(false);
        }
    }
}
